﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AssignRole.ascx.vb" Inherits="WebForm_ManageRoleUserMappingByUser_AssignRole" %>
<%--<%@ Register Src ="~/WebForm/SearchRoleUserMappingByUser.ascx" TagName="SearchRoleUserMappingByUser" TagPrefix="My" %>--%>
<%@ Register Src="~/WebForm/ManageRoleUserMappingByUser/SearchRoleControl.ascx" TagName="SearchRoleControl" TagPrefix="My" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
        <td align="right">
            <asp:Label ID="lblUserType" runat="server" meta:resourcekey="lblUserType"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlUserType" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblUserID" runat="server" meta:resourcekey="lblUserID"></asp:Label>
        </td>
        <td align="left">
            <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
        </td>
        <td align="right">
            <asp:Label ID="lblUserName" runat="server" meta:resourcekey="lblUserName"></asp:Label>
        </td>
        <td align="left">
            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
        </td>        
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>    
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" DataKeyNames="UserID,RoleID" AllowHoverSelect="true" AllowHoverEffect="false" meta:resourcekey="gv">
    <Columns>
        <asp:BoundField DataField="UserID" meta:resourcekey="bfUserID" />
        <asp:BoundField DataField="UserName" meta:resourcekey="bfUserName" />
        <asp:BoundField DataField="RoleDescription" meta:resourcekey="bfRoleDescription" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="AddButtonView" runat="server">
                        <asp:Button ID="btnAddRole" runat="server" meta:resourcekey="btnAddRole" CommandName="btnAddRole" />
                    </asp:View>
                    <asp:View ID="DeleteButtonView" runat="server">
                        <asp:Button ID="btnDeleteRole" runat="server" meta:resourcekey="btnDeleteRole" CommandName="Delete" />
                    </asp:View>                    
                </asp:MultiView>
                
            </ItemTemplate>
        </asp:TemplateField>        
    </Columns>
</My:MyGridView>
<%--<My:SearchRoleUserMappingByUser ID="SearchRoleUserMappingByUser1" runat="server" />--%>
<My:SearchRoleControl ID="SearchRoleControl1" runat="server" />